package com.healthcloud.service.impl;

import com.healthcloud.service.HlHospitalService;
import com.healthcloud.utils.CommonMethod;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

import com.healthcloud.dao.MiInstrumentInstallDao;
import com.healthcloud.entity.MiInstrumentInstallEntity;
import com.healthcloud.service.MiInstrumentInstallService;
import com.healthcloud.utils.PageParam;
import org.springframework.transaction.annotation.Transactional;



@Service("miMedicalinstrumentInstallService")
@Transactional
public class MiInstrumentInstallServiceImpl implements MiInstrumentInstallService {
	@Autowired
	private MiInstrumentInstallDao miInstrumentInstallDao;

	@Autowired
	private HlHospitalService hlHospitalService;
	
	@Override
	public MiInstrumentInstallEntity queryObject(Integer id){
		return miInstrumentInstallDao.queryObject(id);
	}
	
	@Override
	public List<MiInstrumentInstallEntity> queryList(MiInstrumentInstallEntity bean, PageParam pageParam){
		return miInstrumentInstallDao.queryList(bean, pageParam, hlHospitalService.getChildeIds());
	}
	
	@Override
	public int queryTotal(MiInstrumentInstallEntity bean){
		return miInstrumentInstallDao.queryTotal(bean, hlHospitalService.getChildeIds());
	}
	
	@Override
	public void save(MiInstrumentInstallEntity miMedicalinstrumentInstall){
		miInstrumentInstallDao.save(miMedicalinstrumentInstall);
	}
	
	@Override
	public void update(MiInstrumentInstallEntity miMedicalinstrumentInstall){
		miInstrumentInstallDao.update(miMedicalinstrumentInstall);
	}
	
	@Override
	public void delete(Integer id){
		miInstrumentInstallDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		miInstrumentInstallDao.deleteBatch(ids);
	}
	
}
